package cn.dnui_yxk801.dnuifood_16110100801.service;

import java.util.List;

import cn.dnui_yxk801.dnuifood_16110100801.bean.CollectBean;
import cn.dnui_yxk801.dnuifood_16110100801.bean.CommentsBean;
import cn.dnui_yxk801.dnuifood_16110100801.bean.FoodBean;
import cn.dnui_yxk801.dnuifood_16110100801.bean.ResultBean;
import cn.dnui_yxk801.dnuifood_16110100801.bean.ShopBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FoodService {
    @GET("getAllCommentsByFood.do")
    Call<List<CommentsBean>> getAllCommentsByFood(@Query("food_id")String food_id);
    @GET("getFoodById.do")
    Call<FoodBean> getFoodById(@Query("food_id")String food_id);
    @GET("isCollected.do")
    Call<CollectBean> isCollected(@Query("user_id")String userid, @Query("shop_food_id")String food_id, @Query("flag")String flag);
    @GET("insertOrder.do")
    Call<ResultBean> insertOrder(@Query("user_id")String userid,@Query("food_id")String foodid,@Query("num")String num,@Query("sum")String sum,@Query("suggesttime")String suggesting,@Query("address")String address);
    @GET("getFoodBySearch.do")
    Call<List<FoodBean>> getFoodBySearch(@Query("search")String search);
}
